import axiosServer from "./request"

const VueAxios = {
  vm: {},
  install (Vue) {
    Vue.axios = axiosServer
    Object.defineProperties(Vue.prototype, {
      axios: {
        get: function get() {
          return axiosServer
        }
      }
    })
  }
}

/**
 * 定义全局封装的插件，在main.js中引入
 * 
 * @author LiSong
 * @date 2022-05-15 16:58:05
 */
const installer = {
  vm: {},
  install (Vue) {
		Vue.use(VueAxios)
  }
}

export default installer
